package components.valueobjects
{
	import utils.nfc.NfcInterface;
	import utils.nfc.NfcTagCall;
	import utils.nfc.NfcTagEmail;
	import utils.nfc.NfcTagMapUrl;
	import utils.nfc.NfcTagUrl;

	[Bindable]
	public class HotelVO extends LocationVO
	{
		private static const imgPath:String = "images/location/hotels/";
		
		public var url:String;
		public var email:String;
		public var phone:String;
		public var address:AddressVO;
		
		
		public function HotelVO(title:String,img:String,description:String,geolocation:GeoLocationVO,mapurl:String,url:String,email:String,phone:String,address:AddressVO)
		{ 
			super(LocationVO.TYPE_HOTEL,title,imgPath+img,description,geolocation,mapurl);
			this.url = url;
			this.email = email;
			this.phone = phone;
			this.address = address;
		}
		
		override public function getNfcContent():Array
		{
			var nfcContent:Array = new Array();
			nfcContent.push(new NfcTagUrl(NfcInterface.POSITION_TOP,url));
			nfcContent.push(new NfcTagMapUrl(NfcInterface.POSITION_RIGHT,this.mapurl,this.title));
			nfcContent.push(new NfcTagCall(NfcInterface.POSITION_BOTTOM,this.phone));
			nfcContent.push(new NfcTagEmail(NfcInterface.POSITION_LEFT,this.email,"Kontaktanfrage",""));
			
			return  nfcContent;
		}
		
		
		
	}
}